/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/bluetooth.html#wxgetbluetoothadapterstateobject)
 */

export default function get_bluetooth_adapter_state() {
	return new Promise<wx.BluetoothAdapterStateData>((resolve, reject) => {
		wx.getBluetoothAdapterState({
			success(res) {
				resolve(res);
			},
			fail() {
				reject(false);
			}
		});
	});
}
